<?php
namespace app\model;
use think\admin\Model;

use think\model\relation\HasMany;

/**
 * 学员学习新计划详情
 * @class ClassPlanTask
 * @package app\model
 */
class ClassPlanTask extends Model
{
    protected $table = "hjz_class_plan_task";

    public function user(){
        return $this->belongsTo(User::class,'user_id');
    }
    public function plan(){
        return $this->belongsTo(ClassPlan::class,'parent_id');
    }


}